<template>
    <div class="footer">
        <ul class="w">
            <li v-for="(item, index) in list">
                <img :src="item.src" alt="">
                <p>
                    <span>{{item.title}}</span>
                    <span>{{item.son_title}}</span>
                </p>
            </li>
        </ul>
    </div>
</template>

<script>
    export default {
        name: "Footer",
        data() {
            return {
                list: [
                    {
                        src: require("../assets/icon/footer/footer_1.png"),
                        title: "闪电到账",
                        son_title: "收货评价直接现金到账"
                    },{
                        src: require("../assets/icon/footer/footer_1.png"),
                        title: "好货保障",
                        son_title: "商品平均客单价200元"
                    },{
                        src: require("../assets/icon/footer/footer_2.png"),
                        title: "高中奖率",
                        son_title: "高达平均30%中奖率"
                    },{
                        src: require("../assets/icon/footer/footer_3.png"),
                        title: "代言人奖",
                        son_title: "邀请送10元现金+必中"
                    }
                ]
            }
        }
    }
</script>

<style scoped lang="less">
    .footer {
        width: 100%;
        height: 60px;
        background-color: #fff;
        .w {
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            padding: 20px 0;
            li {
                display: flex;
                justify-content: space-between;
                color: #666;
                padding-right: 60px;
                border-right: 1px solid #ccc;

                &:last-of-type {
                    padding-right: 0;
                    border-right: none;
                }
                img {
                    width: 38px;
                    height: 38px;
                    margin-right: 15px;
                }

                p {
                    display: flex;
                    flex-direction: column;

                    span {
                        font-size: 16px;
                        &:nth-child(2) {
                            color: #999;
                            font-size: 14px;
                        }
                    }
                }
            }
        }
    }
</style>
